﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Lamex.Library;
using Lamex.Interface;
using Lamex.Library.CommonClass;

namespace Lamex.SIESystemManager.UI
{
    public partial class IESystemManager : frmModuleBase
    {
        public IESystemManager()
        {
            InitializeComponent();
            menuStrip1.Text = ModuleNames.SIESystemManager; //与AssemblyModuleEntry.ModuleName定义相同

            this.MainMenuStrip = this.menuStrip1;
        }
        public override MenuStrip GetModuleMenu()
        {
            return this.menuStrip1;
        }
        /// <summary>
        /// 产品特征
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        //private void toolStripItemProductCharacteristic_Click(object sender, EventArgs e)
        //{
        //}
        /// <summary>
        /// 产品特征：标准产品
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ToolStripitemStanderProduct_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(FrmBIEOperationData), sender as ToolStripMenuItem);
             
        }
        /// <summary>
        /// 产品特征：SJ产品
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ToolStripitemSJProduct_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(FrmBIEOperationDataSJ), sender as ToolStripMenuItem);
        }
        /// <summary>
        /// 部件工时
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolStripItemPartIE_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(FrmBIEWorkHoursCalculate), sender as ToolStripMenuItem);
        }
        /// <summary>
        /// 功能：包组装工时
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolStripItemComponentStanderProduct_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(FrmBIEGroupPackageData), sender as ToolStripMenuItem);
        }
        /// <summary>
        ///组包装工时计算
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolStripItemComponentSJProduct_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(FrmBIEBOMWorkHoursBack), sender as ToolStripMenuItem);

        }
        /// <summary>
        /// 基础数据：宽放数据
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolStripItemWithPutData_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(FrmBIEAllowanceFactor), sender as ToolStripMenuItem);
        }
        
        /// <summary>
        /// 基础数据：动作定义
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolStripItemActionDefines_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(FrmBIEOperationalDefinition), sender as ToolStripMenuItem);
        }
        /// <summary>
        /// 基础数据:工序动作
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolStripItemWorkingProcessAction_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(FrmBIEProcessOperation), sender as ToolStripMenuItem);
        }
        /// <summary>
        /// 基础数据:动作解析
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolStripItemActionAnaylze_Click(object sender, EventArgs e)
        {
            XtraMessageBox.Show("动作解析");
        }
        /// <summary>
        /// WI
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void wIToolStripMenuItem_Click(object sender, EventArgs e)
        {
            XtraMessageBox.Show("wi");
        }
        /// <summary>
        ///工时 后台查询
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolStripWorkHoursBack_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(FrmBIEWorkHoursBack), sender as ToolStripMenuItem); 
        }

        private void toolStripComponent_Click(object sender, EventArgs e)
        {

        }

        private void toolStripDocumentInstruction_Click(object sender, EventArgs e)
        {
            XtraMessageBox.Show("操作说明");
        }

        private void ToolStripMenuItemMachineTime_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(FrmBIEMachineHours), sender as ToolStripMenuItem);
        }
    }
}